<?php

namespace V1\Model;


use Think\Model;

class AdModel extends Model
{
    protected $tableName = 'ad';

    /**
     * 获取广告列表
     * @return mixed
     */
    public function getAd()
    {
        $map['status'] = 1;
        $request = $this->where($map)->order('sort,id')->select();
        return $request;
    }
}